package com.ruoyi.project.dj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.dj.mapper.DjPoliticalBirthdayMapper;
import com.ruoyi.project.dj.domain.DjPoliticalBirthday;
import com.ruoyi.project.dj.service.IDjPoliticalBirthdayService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 政治生日Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-15
 */
@Service
public class DjPoliticalBirthdayServiceImpl implements IDjPoliticalBirthdayService 
{
    @Autowired
    private DjPoliticalBirthdayMapper djPoliticalBirthdayMapper;

    /**
     * 查询政治生日
     * 
     * @param id 政治生日ID
     * @return 政治生日
     */
    @Override
    public DjPoliticalBirthday selectDjPoliticalBirthdayById(Long id)
    {
        return djPoliticalBirthdayMapper.selectDjPoliticalBirthdayById(id);
    }

    /**
     * 查询政治生日列表
     * 
     * @param djPoliticalBirthday 政治生日
     * @return 政治生日
     */
    @Override
    public List<DjPoliticalBirthday> selectDjPoliticalBirthdayList(DjPoliticalBirthday djPoliticalBirthday)
    {
        return djPoliticalBirthdayMapper.selectDjPoliticalBirthdayList(djPoliticalBirthday);
    }

    /**
     * 新增政治生日
     * 
     * @param djPoliticalBirthday 政治生日
     * @return 结果
     */
    @Override
    public int insertDjPoliticalBirthday(DjPoliticalBirthday djPoliticalBirthday)
    {
        return djPoliticalBirthdayMapper.insertDjPoliticalBirthday(djPoliticalBirthday);
    }

    /**
     * 修改政治生日
     * 
     * @param djPoliticalBirthday 政治生日
     * @return 结果
     */
    @Override
    public int updateDjPoliticalBirthday(DjPoliticalBirthday djPoliticalBirthday)
    {
        return djPoliticalBirthdayMapper.updateDjPoliticalBirthday(djPoliticalBirthday);
    }

    /**
     * 删除政治生日对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteDjPoliticalBirthdayByIds(String ids)
    {
        return djPoliticalBirthdayMapper.deleteDjPoliticalBirthdayByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除政治生日信息
     * 
     * @param id 政治生日ID
     * @return 结果
     */
    @Override
    public int deleteDjPoliticalBirthdayById(Long id)
    {
        return djPoliticalBirthdayMapper.deleteDjPoliticalBirthdayById(id);
    }
}